from core.subscription import SubscriptionManager

def start_cli():
    manager = SubscriptionManager()
    print("CLI Started. Type 'help' for commands.")
    while True:
        command = input("Enter command: ").strip()
        if command == "exit":
            break
        elif command == "list":
            print(manager.list_subscriptions())
        elif command.startswith("add "):
            _, repo = command.split(" ", 1)
            manager.add_subscription(repo)
        elif command.startswith("remove "):
            _, repo = command.split(" ", 1)
            manager.remove_subscription(repo)
        else:
            print("Commands: list, add <repo>, remove <repo>, exit")
